﻿<%@ Page Title="系统日志管理 - 湖北师范大学顶岗实习管理系统" Language="C#" MasterPageFile="~/e/Master/Iframe.Master" AutoEventWireup="true" CodeBehind="List.aspx.cs" Inherits="Chizx.Web.systemlog.List" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MasterIframeHead" runat="server">
    <script src="/js/CheckBox.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $(".list_table").colResizable({
                liveDrag: true,
                gripInnerHtml: "<div class='grip'></div>",
                draggingClass: "dragging",
                minWidth: 30
            });

        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MasterIframeHolder1" runat="server">
    <div id="search_bar" class="mt10">
        <div class="box">
            <div class="box_border">
                <div class="box_top"><b class="pl15">搜索</b></div>
                <div class="box_center pt10 pb10">
                    <table class="form_table" border="0">
                        <tr>
                            <td>
                                <span class="fl">
                                    <div class="select_border">
                                        <div class="select_containers ">
                                            <asp:DropDownList ID="scOption" runat="server" class="select" onchange="doOption($(this).val())">
                                                <asp:ListItem Value="zu_id">用户标识</asp:ListItem>
                                                <asp:ListItem Value="zl_dowhat">动作主题</asp:ListItem>
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                </span>
                            </td>
                            <td>
                                <asp:TextBox ID="txtKeyword" runat="server" CssClass="input-text lh25"></asp:TextBox>
                                <asp:Button ID="btnSearch" runat="server" Text="查询" OnClick="btnSearch_Click" class="btn btn82 btn_search" value="查询" />
                            </td>
                            <td>
                                <asp:Button ID="btnDelete" runat="server" Text="删除" OnClick="btnDelete_Click" class="btn btn82 btn_del" value="删除" /></td>
                            <td></td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
    </div>
    <div id="table" class="mt10" style="margin-bottom: 40px;">
        <div class="box span10 oh">
            <asp:GridView ID="gridView"  CssClass="list_table" BorderStyle="None" CellPadding="0" GridLines="None" rules="none" BorderWidth="0px" runat="server" AllowPaging="True" Width="100%" OnPageIndexChanging="gridView_PageIndexChanging"
                DataKeyNames="zl_id,zu_id" OnRowDataBound="gridView_RowDataBound"
                AutoGenerateColumns="False" RowStyle-HorizontalAlign="Center" OnRowCreated="gridView_OnRowCreated">
                <Columns>
                    <asp:TemplateField ControlStyle-Width="30" HeaderText="选择">
                        <ItemTemplate>
                            <asp:CheckBox ID="DeleteThis" onclick="javascript:CCA(this);" runat="server" />
                        </ItemTemplate>

<ControlStyle Width="30px"></ControlStyle>
                    </asp:TemplateField>

                    <asp:BoundField DataField="zl_id" HeaderText="序号" SortExpression="zl_id" ItemStyle-HorizontalAlign="Center" >
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="学生学号" SortExpression="zu_id">
                        <EditItemTemplate>
                            <a href="/user/Show.aspx?id0=<%#Eval("zu_id").ToString()%>&sign=zxxsb" target="rightFrame" title="点击查看用户详细信息"><asp:TextBox ID="TextBox5" runat="server" Text='<%# Bind("zu_id") %>'></asp:TextBox></a>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <a href="/user/Show.aspx?id0=<%#Eval("zu_id").ToString()%>&sign=zxxsb" target="rightFrame" title="点击查看用户详细信息"><asp:Label ID="Label5" runat="server" Text='<%# Bind("zu_id") %>'></asp:Label></a>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:BoundField DataField="zl_dowhat" HeaderText="动作主题" SortExpression="zl_dowhat" ItemStyle-HorizontalAlign="Center" >
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="动作类型" SortExpression="zl_dotype"><%--0:Test,1:Auth,2:Read,3:Write,4:Del,5:Inpor--%>
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox2" runat="server" Text='<%#Eval("zl_dotype").ToString().Contains("0")?"Test":(Eval("zl_dotype").ToString().Contains("1")?"Auth":(Eval("zl_dotype").ToString().Contains("2")?"Read":(Eval("zl_dotype").ToString().Contains("3")?"Write":(Eval("zl_dotype").ToString().Contains("4")?"Del":"Impor")))) %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label2" runat="server" Text='<%#Eval("zl_dotype").ToString().Contains("0")?"Test":(Eval("zl_dotype").ToString().Contains("1")?"Auth":(Eval("zl_dotype").ToString().Contains("2")?"Read":(Eval("zl_dotype").ToString().Contains("3")?"Write":(Eval("zl_dotype").ToString().Contains("4")?"Del":"Impor")))) %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:BoundField DataField="zl_dowhen" HeaderText="动作时间" SortExpression="zl_dowhen" ItemStyle-HorizontalAlign="Center" >
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="动作描述" SortExpression="zl_dodesc">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox1" runat="server" Text='<%#Eval("zl_dodesc").ToString().Length>20?Eval("zl_dodesc").ToString().Substring(0,20)+"...":Eval("zl_dodesc").ToString() %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" Text='<%#Eval("zl_dodesc").ToString().Length>20?Eval("zl_dodesc").ToString().Substring(0,20)+"...":Eval("zl_dodesc").ToString() %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>

                    <asp:HyperLinkField HeaderText="详细" ControlStyle-Width="50" DataNavigateUrlFields="zl_id,zu_id" DataNavigateUrlFormatString="Show.aspx?id0={0}&id1={1}"
                        Text="详细" >
<ControlStyle Width="50px"></ControlStyle>
                    </asp:HyperLinkField>
                    <asp:TemplateField ControlStyle-Width="50" HeaderText="删除" Visible="false">
                        <ItemTemplate>
                            <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Delete"
                                Text="删除"></asp:LinkButton>
                        </ItemTemplate>

<ControlStyle Width="50px"></ControlStyle>
                    </asp:TemplateField>
                </Columns>
                <EditRowStyle BorderStyle="None" Wrap="False" />
                <EmptyDataRowStyle BorderStyle="None" Wrap="False" />
                <FooterStyle CssClass="tr" Wrap="False" />
                <HeaderStyle CssClass="" BorderStyle="None" Wrap="False" />
                <PagerStyle CssClass="pagination" Wrap="False" />
                <RowStyle CssClass="tr" />
                <SelectedRowStyle CssClass="tr" Wrap="False" />
                <SortedAscendingCellStyle Wrap="False" />
            </asp:GridView>
        </div>
    </div>
</asp:Content>
